package com.geezdata.cps.sdk3rd.pinduoduo.request;

import java.util.HashMap;
import java.util.Map;

import javax.validation.constraints.NotNull;

import com.geezdata.cps.base.request.BaseRequest;
import com.geezdata.cps.sdk3rd.pinduoduo.constant.Constants;

public class PinduoduoOrderInfoRequest extends BaseRequest{
	
	public PinduoduoOrderInfoRequest() {
		setMethodName(Constants.METHOD_PINDUODUO_ORDER_INFORMATION);
	}
	
	private String methodName;
    
	@NotNull(message = "orderSn 不能为空！")
	private String orderSn;
	
	private String platformMerchantId;
	
	private String sessionKey;
	
	private String clientId;
	
	private String clientSecret;
	
	private String authType;
	
	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public String getOrderSn() {
		return orderSn;
	}

	public void setOrderSn(String orderSn) {
		this.orderSn = orderSn;
	}

	public String getPlatformMerchantId() {
		return platformMerchantId;
	}

	public void setPlatformMerchantId(String platformMerchantId) {
		this.platformMerchantId = platformMerchantId;
	}

	public String getSessionKey() {
		return sessionKey;
	}

	public void setSessionKey(String sessionKey) {
		this.sessionKey = sessionKey;
	}

	public String getClientId() {
		return clientId;
	}

	public void setClientId(String clientId) {
		this.clientId = clientId;
	}

	public String getClientSecret() {
		return clientSecret;
	}

	public void setClientSecret(String clientSecret) {
		this.clientSecret = clientSecret;
	}
	
	public Map<String, Object> getAppParams() {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("order_sn", getOrderSn());
		return map;
	}

	public String getAuthType() {
		return authType;
	}

	public void setAuthType(String authType) {
		this.authType = authType;
	}
}
